import java.util.HashMap;
import java.util.Map;

public class hwMap {
    public static void main(String[] args) {
        // 创建HashMap存储学生成绩
        Map<String, Integer> studentGrades = new HashMap<>();
        
        // 添加学生信息
        studentGrades.put("张三", 85);
        studentGrades.put("李四", 90);
        studentGrades.put("王五", 78);
        studentGrades.put("赵六", 92);
        
        System.out.println("原始成绩单: " + studentGrades);
        
        // 查找并更新特定学生的成绩
        String studentName = "李四";
        if (studentGrades.containsKey(studentName)) {
            int currentGrade = studentGrades.get(studentName);
            studentGrades.put(studentName, currentGrade + 10);
            System.out.println(studentName + "的成绩已提高10分");
        } else {
            System.out.println("未找到学生: " + studentName);
        }
        
        System.out.println("更新后的成绩单: " + studentGrades);
    }
}